home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_ghostscript.idb / usr / freeware / doc / ghostscript / 3.33 / lib.doc.z / lib.doc
Encoding:
Text File  |  1998-05-21  |  3.3 KB  |  72 lines

  1.    Copyright (C) 1989 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of GNU Ghostscript.
  4.   
  5.   GNU Ghostscript is distributed in the hope that it will be useful, but
  6.   WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility to
  7.   anyone for the consequences of using it or for whether it serves any
  8.   particular purpose or works at all, unless he says so in writing.  Refer
  9.   to the GNU Ghostscript General Public License for full details.
  10.   
  11.  
  12. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  13.  
  14. This file, lib.doc, describes the Ghostscript library, a collection of C
  15. procedures that implement the primitive graphic operations of the
  16. Ghostscript language.
  17.  
  18. For an overview of Ghostscript and a list of the documentation files, see
  19. README.
  20.  
  21. ********
  22. ******** The Ghostscript library ********
  23. ********
  24.  
  25. Ghostscript is actually two programs: a language interpreter, and a
  26. graphics library.  The library provides, in the form of C procedures, all
  27. the graphics functions of the language, i.e., approximately those
  28. facilities listed in section 6.2 of the PostScript manual starting with
  29. the graphics state operators.  In addition, the library provides some
  30. lower-level graphics facilities that offer higher performance in exchange
  31. for less generality.
  32.  
  33. To be specific, the highest level of the library implements all the
  34. operators in the "graphics state", "coordinate system and matrix", "path
  35. construction", "painting", "character and font", and "font cache" sections
  36. of the PostScript manual, with the following deliberate exceptions:
  37.     settransfer, currenttransfer
  38.     definefont, findfont
  39.     FontDirectory, StandardEncoding
  40. The following "device" operators are implemented:
  41.     showpage (synchronizes the display)
  42.     nulldevice
  43.  
  44. There are slight differences in the operators that return multiple values,
  45. since C's provisions for this are awkward.  Also, the control structure
  46. for the operators involving (an) auxiliary procedure(s) (setscreen,
  47. pathforall, image, imagemask) is partly inverted: the client calls a
  48. procedure to set up an enumerator object, and then calls another procedure
  49. for each iteration.  The ...show operators, charpath, and stringwidth
  50. also use an inverted control structure.
  51.  
  52. Files named gs*.c implement the higher level of the graphics library.
  53. To use the facilities of gs?.c, a client program should include
  54. gs?.h.  As might be expected, all procedures, variables, and
  55. structures available at this level begin with gs_.  Structures that
  56. appear in these interfaces, but whose definitions may be hidden from
  57. clients, also have names beginning with gs_, i.e., the prefix
  58. reflects at what level the abstraction is made available, not the
  59. implementation.
  60.  
  61. Files named gx*.c implement the lower level of the graphics library.
  62. To use the facilities of gx?.c, a client program should include
  63. gx?.h.  The interfaces at the gx level are less stable, and expose
  64. more of the implementation detail, than those at the gs level: in
  65. particular, the gx interfaces generally use device coordinates in an
  66. internal fixed-point representation, as opposed to the gs interfaces
  67. that use floating point user coordinates.  Named entities at this
  68. level begin with gx_.
  69.  
  70. Files named gz*.c and gz*.h are internal to the Ghostscript
  71. implementation, and not designed to be called by clients.
  72.